package c16多线程;

public class TestYield extends Thread {

	@Override
	public void run() {
		System.err.println("yield前");
		yield();
	}

	public static void main(String[] args) {
		new TestYield().start();
		System.err.println("yield后");
		System.err.println("yield后");
		System.err.println("yield后");
		System.err.println("yield后");
		System.err.println("yield后");
		System.err.println("yield后");
	}

}
